let list = document.getElementsByClassName('radio')
let divList = document.getElementsByClassName('book-box')[0].children
Array.from(list).forEach((item) => {
  item.onclick = () => {
    // 箭头函数中没有this
    if (item.value === '0') {
      divList[0].style.display = 'block'
      divList[1].style.display = 'none'
    } else if (item.value === '1') {
      divList[1].style.display = 'block'
      divList[0].style.display = 'none'
    }
  }
})
